import tkinter as tk

"""最简单的登录界面"""
top = tk.Tk()
top.resizable(False, False)

userFrame= tk.Frame(top)
userFrame.pack(side = tk.TOP, fill=tk.X)
userLabel = tk.Label(userFrame, text='用户名:', width=8, anchor=tk.E)
userLabel.pack(side=tk.LEFT)

userEntry = tk.Entry(userFrame, width=20)
userEntry.pack(side=tk.LEFT)

pwdFrame= tk.Frame(top)
pwdFrame.pack(side=tk.TOP, fill=tk.X)
pwdLabel = tk.Label(pwdFrame, text='密码:', width=8, anchor=tk.E)
pwdLabel.pack(side=tk.LEFT)

pwdEntry = tk.Entry(pwdFrame, width=20)
pwdEntry.pack(side=tk.LEFT)

btnFrame = tk.Frame(top)
btnFrame.pack(side=tk.TOP, fill=tk.X)

confirmBtn = tk.Button(btnFrame, width=8, text='确认')
confirmBtn.pack(side=tk.TOP)

top.mainloop()